<include file="public:header"/>

<div class="list_th">
    <div class="td" style=" width:10%;">
        <div class="left_padding">显示</div>
    </div>
    <div class="td" style=" width:10%;">名称</div>

    <div class="td" style=" width:10%;">简历下载次数</div>

    <div class="td" style=" width:10%;">常规发布数</div>

    <div class="td" style=" width:10%;">项目专场</div>

    <div class="td" style=" width:10%;">急招次数</div>

    <div class="td" style=" width:10%;">短期次数</div>
<!--    <div class="td center" style=" width:10%;">会员申请</div>-->
    <div class="td" style=" width:10%;">服务价</div>

    <div class="td center " style=" width:10%;">折扣</div>
<!--    <div class="td center" style=" width:15%;">期限</div>-->
<!--    <div class="td center" style=" width:10%;">排序</div>-->
    <div class="td" style=" width:10%;">操作</div>
    <div class="clear"></div>
</div>

<volist name="setmeal" id="vo">
    <div class="list_tr link_black">
        <div class="td" style=" width:10%;">
            <div class="left_padding striking">
                <if condition="$vo['display'] eq 1">显示<else /><span style="color: #999999">屏蔽</span></else></if>
            </div>
        </div>
        <div class="td" style=" width:10%;">
            {$vo['setmeal_name']}<span style="color:#999999">(id:{$vo.id})</span>
        </div>

        <div class="td" style=" width:10%;">
            {$vo['vip_download_resume']}
        </div>

        <div class="td" style=" width:10%;">
            {$vo['vip_regular_position']}
        </div>

        <div class="td" style=" width:10%;">
            {$vo['vip_special_program']}
        </div>

        <div class="td" style=" width:10%;">
            {$vo['vip_ji_zhao']}
        </div>

        <div class="td" style=" width:10%;">
            {$vo['vip_duan_qi']}
        </div>

        <!--        <div class="td center" style=" width:10%;">-->
<!--            <if condition="$vo['apply'] eq 1">允许<else /><span style="color: #999999">不允许</span></if>-->
<!--        </div>-->
        <div class="td" style=" width: 10%;">
            <if condition="$vo['expense'] eq 0">免费<else />￥<strong>{$vo.expense}</strong>元</if>
        </div>

        <div class="td center" style=" width: 10%;">
            <if condition="$vo['price_rate'] eq 0">不打折<else /><strong>{$vo.price_rate}</strong>%</if>
        </div>

<!--        <div class="td center" style=" width:15%;">-->
<!--            <if condition="$vo['days'] eq 0">不限制<else />{$vo.days}天</if>-->
<!--        </div>-->
<!--        <div class="td center" style=" width:10%;">{$vo.show_order}</div>-->
        <div class="td edit" style=" width:10%;">
            <a href="{:U('Settaocan/edit',array('id'=>$vo['id']))}">设置</a>
            <if condition="$vo['is_free'] neq 1">
                <a href="{:U('Settaocan/delete',array('id'=>$vo['id']))}" onclick="return confirm('你确定要删除吗？')" class="gray">删除</a>
            </if>
        </div>
        <div class="clear"></div>
    </div>
</volist>
<empty name="setmeal">
    <div class="list_empty">没有任何信息！</div>
</empty>
<div class="list_foot">
    <div class="btnbox">
        <input type="button" class="admin_submit" id="ButAdd" value="新增套餐" onclick="window.location.href='{:U('Settaocan/add')}'"/>
    </div>
    <div class="footso"></div>
</div>

</div>
<include file="public:footer"/>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        $('#J_submit').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("{:U('set_taocan')}",$('#form1').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.reload();
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
        $('#J_submit1').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("{:U('set_taocan')}",$('#form2').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.reload();
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
    });
</script>
</html>